package com.pactera.madp.cp.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @description:(通讯录)部门管理
 */
@Data
@TableName("cp_work_department")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "(通讯录)部门管理")
public class WorkDeptEntity extends BaseEntity<WorkDeptEntity> {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "部门 id")
    private Integer id;

    @ApiModelProperty(value = "微信部门自增id")
    private Integer wxDepartmentId;
    
    @ApiModelProperty(value = "企业表 id")
    private Integer corpId;
    
    @ApiModelProperty(value = "部门名称")
    private String name;
    
    @ApiModelProperty(value = "父部门 id")
    private Integer parentId;
    
    @ApiModelProperty(value = "微信父部门 id")
    private Integer wxParentid;
    
    @TableField("`order`")
    @ApiModelProperty(value = "部门排序")
    private Integer order;
    
    @ApiModelProperty(value = "部门等级")
    private Integer level;
    
    @ApiModelProperty(value = "部门父 id 路径")
    private String path;

    @ApiModelProperty(value = "部门地址")
    private String address;
    
}
